import XButton from './comp/button'
import XCascader from './comp/cascader'
import XCheckbox from './comp/checkbox'
import XColorPicker from './comp/colorPicker'
import XDatePicker from './comp/datePicker'
import XInput from './comp/input'
import XInputNumber from './comp/inputNumber'
import XRadio from './comp/radio'
import XRate from './comp/rate'
import XSelect from './comp/select'
import XSlider from './comp/slider'
import XTimeSelect from './comp/timeSelect'
import XSwitchs from './comp/switch'

const commons = {
  // 是否单独显示一行
  block: false,
  // 是否必填
  require: false,
  // 验证错误提示信息
  ruleError: '',
  // 是否关联字段
  relation: false,
  // 关联字段name
  relation_name: '',
  // 关联字段value
  relation_value: '',
  // 是否被渲染
  visibility: true,
  // 外部style样式
  style: null,
  // 外部class样式
  class: null,
  // 只读
  readonly: false,
  // 禁用
  disabled: false,
  // 栅格
  span: 24
  // 是否开启校验
  // required: false,
  // errorMessage: ''
}

const list = {
  XButton,
  XCascader,
  XCheckbox,
  XColorPicker,
  XDatePicker,
  XInput,
  XInputNumber,
  XRadio,
  XRate,
  XSelect,
  XSlider,
  XSwitchs,
  XTimeSelect
}
for (const key in list) list[key].config = Object.assign({}, list[key].config, commons)
console.log(list)
export default list
